package com.gitee.dufafei.plugin.core;

public class PluginException extends RuntimeException {

    private static final long serialVersionUID = 1L;
    private Integer code;

    public Integer getCode() { return code; }

    public void setCode(Integer code) { this.code = code; }

    public PluginException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public PluginException(String message) { super(message); }

    public PluginException(Throwable cause) { super(cause); }

    public PluginException(String message, Throwable cause) { super(message, cause); }
}
